package main

import (
	"fmt"
	"map_reduce_filter"
	"strings"
)
func main() {
	var list=[]string{"apple","pear","banana"}
	x := map_reduce_filter.Map(list, func(s string) string {
		return strings.ToUpper(s)
	})
	fmt.Println(x)
	y := map_reduce_filter.Reduce(list, func(s string) int {
		return len(s)
	})
	fmt.Println(y)
	filters := map_reduce_filter.Filter(list, func(s string) bool {
		return len(s) > 4
	})
	fmt.Println(filters)
}
